<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAccountsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('accounts', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('advertiser')->comment('公司id');
            $table->string('contract_id')->comment('合同id');
            $table->integer('product_line')->comment('产品线');
            $table->string('appname')->comment('产品名称');
            $table->string('promote_url')->comment('推广url');
            $table->string('tel')->comment('推广手机号');
            $table->timestamp('endtime')->comment('账户结束时间');
            $table->text('note')->comment('备注')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('accounts');
    }
}
